package com.stevenmoon.csdnplus.net;

import com.stevenmoon.csdnplus.app.LoginPrefs;

/**
 * Created by WangJun on 2016/4/7.
 */
public class CSDNNetUtil {

    private CSDNNetUtil(){}

    public static NetPostBuilder post(){
        return new NetPostBuilder()
                .addHeader("platform", "android")
                .addHeader("version", "1.9")//TODO 这里要改成从版本号里获取
                .addHeader("Host", "ms.csdn.net")
                .addParams("SessionId", LoginPrefs.getSessionId());//TODO 改成登录后获取的sessionID再加密;
    }

    public static NetGetBuilder get(){
        return new NetGetBuilder()
                .addHeader("platform", "android")
                .addHeader("version", "1.9")//TODO 这里要改成从版本号里获取
                .addHeader("Host", "ms.csdn.net")
                .addParams("SessionId", LoginPrefs.getSessionId());//TODO 改成登录后获取的sessionID再加密;
    }


}
